import Vue from 'vue'
import Router from 'vue-router'
import Login from "@/components/Login";
import Manager from "@/components/Manager";
import HouseList from "@/components/house/HouseList";
import MyHouse from "@/components/house/MyHouse";
import OwnerList from "@/components/owner/OwnerList";
import OwnerSelf from "@/components/owner/OwnerSelf";
import AddOwner from "@/components/owner/AddOwner";
import AddCar from "@/components/car/AddCar";
import CarList from "@/components/car/CarList";
import MyCar from "@/components/car/MyCar";


Vue.use(Router)

export default new Router({
  routes: [

    {path: "/", component: Login},
    {
      path: "/manager", component: Manager,
      children:[
        {path:"/house/HouseList",component:HouseList},
        {path:"/house/MyHouse",component:MyHouse},
        {path:"/owner/OwnerList",component:OwnerList},
        {path:"/owner/OwnerSelf",component:OwnerSelf},
        {path:"/owner/AddOwner",component:AddOwner},
        {path:"/car/AddCar",component:AddCar},
        {path:"/car/CarList",component:CarList},
        {path:"/car/MyCar",component:MyCar},

      ]

    }
  ]
})
